package com.hckjsec.website.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.website.mapper.WebSiteNotifyMapper;
import com.hckjsec.website.domain.WebSiteNotify;
import com.hckjsec.website.service.IWebSiteNotifyService;

/**
 * 通知公告Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-18
 */
@Service
public class WebSiteNotifyServiceImpl implements IWebSiteNotifyService 
{
    @Autowired
    private WebSiteNotifyMapper webSiteNotifyMapper;

    /**
     * 查询通知公告
     * 
     * @param id 通知公告ID
     * @return 通知公告
     */
    @Override
    public WebSiteNotify selectWebSiteNotifyById(Long id)
    {
        return webSiteNotifyMapper.selectWebSiteNotifyById(id);
    }

    /**
     * 查询通知公告列表
     * 
     * @param webSiteNotify 通知公告
     * @return 通知公告
     */
    @Override
    public List<WebSiteNotify> selectWebSiteNotifyList(WebSiteNotify webSiteNotify)
    {
        return webSiteNotifyMapper.selectWebSiteNotifyList(webSiteNotify);
    }

    /**
     * 新增通知公告
     * 
     * @param webSiteNotify 通知公告
     * @return 结果
     */
    @Override
    public int insertWebSiteNotify(WebSiteNotify webSiteNotify)
    {
        return webSiteNotifyMapper.insertWebSiteNotify(webSiteNotify);
    }

    /**
     * 修改通知公告
     * 
     * @param webSiteNotify 通知公告
     * @return 结果
     */
    @Override
    public int updateWebSiteNotify(WebSiteNotify webSiteNotify)
    {
        return webSiteNotifyMapper.updateWebSiteNotify(webSiteNotify);
    }

    /**
     * 批量删除通知公告
     * 
     * @param ids 需要删除的通知公告ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteNotifyByIds(Long[] ids)
    {
        return webSiteNotifyMapper.deleteWebSiteNotifyByIds(ids);
    }

    /**
     * 删除通知公告信息
     * 
     * @param id 通知公告ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteNotifyById(Long id)
    {
        return webSiteNotifyMapper.deleteWebSiteNotifyById(id);
    }
}
